package com.xyj.singleton;

import java.util.Arrays;

/**
 * 静态内部类实现懒汉加载
 */
public class StaticLazySingle {

    private StaticLazySingle(){}

    public static StaticLazySingle getInstance(){
        return HolderSingle.instance;
    }

    public static class HolderSingle{
        public static StaticLazySingle instance=new StaticLazySingle();
    }

    public static void main(String[] args) {

    }
}
